﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
    

    public class A_Delete : A_Action
    {
        public A_Delete()
        {
            base.HotKey = Keys.Delete;
        }

        public override string ActionName()
        {
            return "delete";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._Delete();
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

